package kp.rpc.fault.retry;

import kp.rpc.model.RpcResponse;

import java.util.concurrent.Callable;

/**
 * @author tzf
 * @description: 重试策略接口
 * @date: 2024/6/7 13:58
 */

public interface RetryStrategy {
    /**
     * 重试
     */
    RpcResponse doRetry(Callable<RpcResponse> callable) throws Exception;
}
